/** Powered By zscat科技, Since 2016 - 2020 */

package com.zs.pig.order.serviceImpl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zs.pig.order.api.model.OrderLog;
import com.zs.pig.order.api.service.OrderLogService;
import com.zs.pig.order.mapper.OrderLogMapper;
/**
 * 
 * @author zsCat 2017-1-7 16:57:31
 * @Email: 951449465@qq.com
 * @version 1.0v
 *	订单日志管理
 */
@Service("OrderLogService")
public class OrderLogServiceImpl implements OrderLogService {

	@Resource
	private OrderLogMapper OrderLogMapper;

	
	/**
	 * 保存或更新
	 * 
	 * @param OrderLog
	 * @return
	 */
	public int saveOrderLog(OrderLog OrderLog) {
		return OrderLogMapper.insertSelective(OrderLog);
	}

	/**
	 * 删除
	* @param OrderLog
	* @return
	 */
	public int deleteOrderLog(OrderLog OrderLog) {
		return OrderLogMapper.deleteByPrimaryKey(OrderLog.getId());
	}

	@Override
	public OrderLog selectByPrimaryKey(Long id) {
		return OrderLogMapper.selectByPrimaryKey(id);
	}

	@Override
	public PageInfo<OrderLog> selectPage(int pageNum, int pageSize,
			OrderLog orderLog) {
		// TODO Auto-generated method stub
		return null;
	}

   
}
